#include<stdio.h>

struct number
{
	int i;
	int j;
}; 

int count=1;

int deal(struct number num[],int m)
{
	int temp;
	temp=num[m].i;
	num[m-1].i=num[m].j;
	num[m-1].j=temp+num[m].j;
	if(m==1)  printf("%d,%d",num[m].i,num[m].j);
	return deal(num,m-1);
}

int main()
{
	int n,i,j;
	scanf("%d",&n);
	struct number num[n-1];
	num[n].i=1;
	num[n].j=2;
	deal(num,n);
}
